/* Copyright (c) 2008-present InnAnTech Industries Author: Dave Guindon Web: www.DaveGuindon.info Support: www.DaveGuindonSupport.com Product: www.ExitSplash.com Product Help: www.ExitSplash.com/help Please send bug reports, suggestions and/or feedback to the support website given above. ExitSplash is a commercial software. Any distribution is strictly prohibited unless a resale rights license was delivered along with this software. */ /* ============= FUNCTIONS ============= */ function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } function addClickEvent(a,i,func) { if (typeof a[i].onclick != 'function') { a[i].onclick = func; } } disablelinksfunc = function(){ var a = document.getElementsByTagName('A'); for (var i = 0; i < a.length; i++) { if(a[i].target !== '_blank') { addClickEvent(a,i, function(){ PreventExitSplash=true; }); } else { addClickEvent(a,i, function(){ PreventExitSplash=false;}); } } } disableformsfunc = function(){ var f = document.getElementsByTagName('FORM'); for (var i=0;i'); if(UseAudio == 1) jQuery("#ExitSplashDiv").append(''); jQuery("#ExitSplashBackDiv").show(); jQuery("#ExitSplashDiv").show(); setTimeout('window.location="'+exitsplashpage+'"', 10); var ua = jQuery.browser; var ver = ua.version.slice(0,1); var verInt = parseInt(ver); if ((UseAlert == 0) && (ua.mozilla) && (verInt >= 2)){ //special condition only for FireFox v4+ if (!confirm(exitsplashmessage)){ if(UseHelper == 1) jQuery("#ExitSplashImpactImage").attr('src','http://exitsplash.s3.amazonaws.com/files/firefox.gif'); return exitsplashmessage; } }else{ if(UseAlert == 1) window.alert(alertmessage); return exitsplashmessage; } } }